/* simple PWM LED driver */

/* Copyright (C) 2009-2011 David Zanetti
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; version 2 of the License.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License along
 *  with this program; if not, write to the Free Software Foundation, Inc.,
 *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */

#define LED_H

void led_init(void);

void led_red(uint16_t brightness);
void led_green(uint16_t brightness);

/* simple defaults.. note yellow is not quite just red+green,
   this is because LEDs are not equally bright. */
#define LED_RED {led_red(0x3ff); led_green(0x0);}
#define LED_GREEN {led_red(0x0); led_green(0x3ff);}
#define LED_YELLOW {led_red(0xff); led_green(0x3ff);}


